﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ViewModels="clr-namespace:ScrumSprintMonitor.Modules.WorkItemMonitor.ViewModels"
    xmlns:Wpf="clr-namespace:ScrumSprintMonitor.UI.Wpf;assembly=ScrumSprintMonitor.UI.Wpf"
    xmlns:Controls="clr-namespace:ScrumSprintMonitor.Modules.WorkItemMonitor.Controls">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="TeamMemberBadgeDataTemplate.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <DataTemplate DataType="{x:Type ViewModels:TeamMembersListViewModel}">
        <Grid>
            <Controls:SprintWarningBorder/>

            <ScrollViewer VerticalScrollBarVisibility="Disabled" VerticalAlignment="Stretch">
                <ItemsControl ItemsSource="{Binding TeamMembersIncludingUnassigned}" Focusable="False">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <Wpf:AnimatedWrapPanel Duration="0:0:2" />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </ItemsControl>
            </ScrollViewer>
        </Grid>
    </DataTemplate>
</ResourceDictionary>